package com.yao.po;


import lombok.Data;

import java.util.List;

@Data
public class Categorize {
    /**
     * 一级分类ID
     */
    private Integer id;
    /**
     * 一级分类名称
     */
    private String name;
    /**
     * 一级分类图片URL
     */
    private String imageUrl;
    /**
     * 二级分类数组
     */
    private List<Categorize2> children;

    public Categorize() {
    }

    public Categorize(Integer id, String name, String imageUrl, List<Categorize2> children) {
        this.id = id;
        this.name = name;
        this.imageUrl = imageUrl;
        this.children = children;
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return imageUrl
     */
    public String getImageUrl() {
        return imageUrl;
    }

    /**
     * 设置
     * @param imageUrl
     */
    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    /**
     * 获取
     * @return children
     */
    public List<Categorize2> getChildren() {
        return children;
    }

    /**
     * 设置
     * @param children
     */
    public void setChildren(List<Categorize2> children) {
        this.children = children;
    }

    public String toString() {
        return "Categorize{id = " + id + ", name = " + name + ", imageUrl = " + imageUrl + ", children = " + children + "}";
    }
}
